<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title>根据日期输出星期几的图片</title>
    </head>
    <body>
        <?php
     $date=date('今天是Y年m月d日星期N，G时i分s秒');
      echo $date; 
      
      $m=date("N");
      if ($m==1) 
          {echo "<img src='yi.jpeg'>";}
      if ($m==2) 
          {echo "<img src='er.jpeg'>";}
       if ($m==3) 
          {echo "<img src='san.jpeg'>"; }          
       if ($m==4) 
           {echo "<img src='si.jpeg'>";}
       if ($m==5)  
           {echo "<img src='wu.jpeg'>";}  
       if ($m==6)  
            {echo "<img src='liu.jpeg'>";}
        if ($m==7) 
            {echo "<img src='qi.jpeg'>";}
        else
        { echo "<img src='mon.jpg'>";}       
        ?>
        
       
   
        
    </body>
</html>
